﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Html;

namespace AutoPartsSearch.Web.Extensions
{
    public static class DropDownExtensions
    {
        public static MvcHtmlString EmptyDropDownFor<TModel, TProperty>(this HtmlHelper<TModel> helper, System.Linq.Expressions.Expression<Func<TModel, TProperty>> expression)
        {
            return helper.DropDownListFor(expression, Enumerable.Empty<SelectListItem>());
        }
    }

}